package com.yanghang.controller;

import com.yanghang.entity.Brand;
import com.yanghang.service.BrandService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@RequestMapping("/brand")
public class BrandController {
    private BrandService bs;

    public BrandService getBs() {
        return bs;
    }

    public void setBs(BrandService bs) {
        this.bs = bs;
    }
    @RequestMapping("/selectAllBrand")
    @ResponseBody
    public List<Brand>selectAllBrand(){
        return bs.selectAllBrand();
    }
}
